AgentX

 

Initial Setup Properties

Common (Voice and Data)

AppID

AutoConnect

 

Methods

Common (Voice and Data)

Connect

 

 

Events

Common (Voice and Data)

Changed

Connected

Disconnected

Overview

The AgentX control is a stand-alone ActiveX control that provides a facility for creating Conversation objects and for catching the asynchronous connection and change events of an AgentX session. The AgentX control is used in all WorkGroup Telephony client or peer applications as well as in non-VBVoice server applications. The AgentX control is invisible at run-time.

Sending a Message

To send an AgentX message, set the AppID property, use the Connect method to create a new Conversation, and use the SetData and Send methods on the resulting Conversation object. Call the ResetConversation method if you do not expect a reply.

Receiving a Message

To receive a message, set the AppID property, and the AutoConnect property if desired. In the Changed event, retrieve the data using the GetData method.

Replying

In the Changed event, use the SetData and Send methods on the Conversation object supplied as an event parameter. A reference to the Conversation object may be stored for later use if desired. Note that if the sending application calls ResetConversation before Send is called by the receiver, the Send method will fail.